package com.dgcsxy.my_college_note.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author Yjx
 * @since 2022-10-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class McnLog implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 日记id主键
     */
    @TableId(value = "log_id", type = IdType.ID_WORKER_STR)
    private String logId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private String userId;

    /**
     * 发表时间
     */
    @TableField("log_time")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime logTime;

    /**
     * 日记标题
     */
    @TableField("log_title")
    private String logTitle;

    /**
     * 日记内容
     */
    @TableField("log_content")
    private String logContent;

    /**
     * 日记图片
     */
    @TableField("log_picture")
    private String logPicture;

    /**
     * 日记发布位置
     */
    @TableField("log_location")
    private String logLocation;

    /**
     * 日记状态
     */
    @TableField("log_status")
    private Integer logStatus;


}
